﻿using System;
class TheDigitName
{
    static void Main()
    {
        int number = 0;
        do
        {
            if (number != 0)
            {
                Console.Write("Please reenter number: ");
            }
            else
            {
                Console.Write("Please enter number: ");
            }
            while (true)
            {
                try
                {
                    number = int.Parse(Console.ReadLine());
                    break;
                }
                catch (Exception)
                {
                    Console.Write("Please re-enter first number:");
                }
            }

        } while ((number < 0) || (number > 9));
        switch (number)
        {
            case 0:
                {
                    Console.WriteLine("The number is \"zero\"");
                    break;
                }
            case 1:
                {
                    Console.WriteLine("The number is \"one\"");
                    break;
                }
            case 2:
                {
                    Console.WriteLine("The number is \"two\"");
                    break;
                }
            case 3:
                {
                    Console.WriteLine("The number is \"three\"");
                    break;
                }
            case 4:
                {
                    Console.WriteLine("The number is \"four\"");
                    break;
                }
            case 5:
                {
                    Console.WriteLine("The number is \"five\"");
                    break;
                }
            case 6:
                {
                    Console.WriteLine("The number is \"six\"");
                    break;
                }
            case 7:
                {
                    Console.WriteLine("The number is \"seven\"");
                    break;
                }
            case 8:
                {
                    Console.WriteLine("The number is \"eight\"");
                    break;
                }
            case 9:
                {
                    Console.WriteLine("The number is \"nine\"");
                    break;
                }
            default:
                {
                    break;
                }
        }
        Console.ReadLine();
    }
}

